package com.bl.ep.bean;

import java.util.Date;

/**
 * @ClassName AccessInformation
 * @Description 人员出入信息
 * @Author 陈宝梁
 * @Date 2021/11/15 17:12
 * @Version 1.0
 **/
public class AccessInformation {
    private String id;  // id 唯一标识
    private Date time;  //进出时间
    private String turnover;  //I表示进入，O表示出去
    private Student student;    //进出人员
    private SecurityGuard securityGuard; //门岗检测员

    public AccessInformation() {
    }

    public AccessInformation(String id, Date time, String turnover, Student student, SecurityGuard securityGuard) {
        this.id = id;
        this.time = time;
        this.turnover = turnover;
        this.student = student;
        this.securityGuard = securityGuard;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getTurnover() {
        return turnover;
    }

    public void setTurnover(String turnover) {
        this.turnover = turnover;
    }

    public Student getStudent() {
        return student;
    }

    public void setStudent(Student student) {
        this.student = student;
    }

    public SecurityGuard getSecurityGuard() {
        return securityGuard;
    }

    public void setSecurityGuard(SecurityGuard securityGuard) {
        this.securityGuard = securityGuard;
    }

    @Override
    public String toString() {
        return "AccessInformation{" +
                "id='" + id + '\'' +
                ", time=" + time +
                ", turnover='" + turnover + '\'' +
                ", student=" + student +
                ", securityGuard=" + securityGuard +
                '}';
    }
}
